﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace WHMS.EntityClasses
{
	public partial class SupplyOrderItemEntity
	{
		public int NewShelfId { get; set; }
        public List<ShelfBalance> ShelvesBalances { get; set; }
		public decimal QuantityToBeAdded { get; set; }
		public decimal RemainderQuantity
		{
			get
			{
				return Quantity - DeliveredQuantity;
			}
		}



        public decimal Weight
        {
            get
            {
                return this.Quantity * (this.Item != null ? this.Item.Weight : 0);
            }
        }

        public decimal WeightQtyAdded
        {
            get
            {
                return this.QuantityToBeAdded*(this.Item != null ? this.Item.Weight : 0);
            }
        }

	}

    public class ShelfBalance
    {
        public int ShelfId{get;set;}
        public double Quantity { get; set; }
    }
}